<template>
    <div>
        <!-- 轮播图 -->
        <swiper :list="list" class="homeSwipe"></swiper>
        <!-- 导航栏 -->
        <div class="mui-content">
            <ul class="mui-table-view mui-grid-view mui-grid-9">
                <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><router-link to="/home/newsList">
                        <img src="../../../static/images/menu1.png" class="menu">
                        <div class="mui-media-body">新闻资讯</div></router-link></li>
                <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><router-link to="/home/photoList">
                        <img src="../../../static/images/menu2.png" class="menu">
                        <div class="mui-media-body">图片分享</div></router-link></li>
                <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><router-link to="/home/goodsList">
                        <img src="../../../static/images/menu3.png" class="menu">
                        <div class="mui-media-body">商品购买</div></router-link></li>
                <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><router-link to="/">
                        <img src="../../../static/images/menu4.png" class="menu">
                        <div class="mui-media-body">留言反馈</div></router-link></li>
                <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><router-link to="/">
                        <img src="../../../static/images/menu5.png" class="menu">
                        <div class="mui-media-body">视频专区</div></router-link></li>
                <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><router-link to="/">
                        <img src="../../../static/images/menu6.png" class="menu">
                        <div class="mui-media-body">联系我们</div></router-link></li>
            </ul> 
		</div>
    </div>
</template>

<script>
import swiper from '../subcomponents/swipe.vue'
export default {
    data() {
        return {
            list: [{
                id: 1,
                img: "./static/images/swipe1.png"
            },{
                id: 2,
                img: "./static/images/swipe2.png"
            }, {
                id: 3,
                img: "./static/images/swipe3.jpg"
            }, {
                id: 4,
                img: "./static/images/swipe4.png"
            }]
        }
    },
    methods: {
    },
    components: {
        swiper 
    }
}
</script>

<style>
    /* 全局设置 */
    body {
        background-color: #fff;
    }
    /* 当前轮播图 */
    .mint-swipe {
        height: 200px;
    }
    .mint-swipe-item {
        background-size: 100% 100%!important;
    }
    @media (min-width: 400px) {
        .mui-col-sm-3 {
            width: 33.33333333%;
        }
    }
    .mui-table-view {
        background-color: #fff!important;
        border: 0!important;
    }
    .mui-table-view-cell {
        border: 0!important;
    }
    .menu {
        width: 60px;
        height: 60px;
    }
</style>
